package com.charm.watercress.adapter

import android.widget.ImageView
import android.widget.TextView
import com.chad.library.adapter.base.BaseViewHolder
import com.charm.codes.imageLoad.XGlide
import com.charm.frameworkarou.recycleadapter.QuickRecyAdapter
import com.charm.watercress.R
import com.charm.watercress.entity.ActorsBean

/**
 * Created by tools on 2018/1/12.
 */
class ActorsAdapter(list: List<ActorsBean>?) : QuickRecyAdapter<ActorsBean>(list) {
    override fun convert(helper: BaseViewHolder?, item: ActorsBean?) {
        helper!!.getView<TextView>(R.id.title).text = item!!.name
        var image = helper!!.getView<ImageView>(R.id.image)
//        XGlide.getInstance().displayImage(mContext, url, image, R.drawable.bg_block)
    }

    override fun getLayoutResId(): Int {
        return R.layout.item_actors
    }

}